package com.example.dubbo.consumer;

import com.example.interfaces.DubboService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : Vick C
 * @version : v1.0
 * @date : 2020/6/16
 */
@RestController
public class DubboConsumerController {

    @Reference
    private DubboService dubboService;

    @RequestMapping("/hello")
    public String hello(String word) {
        return dubboService.hello(word);
    }

}
